﻿// TrainRateDlg.cpp: 实现文件
//

#include "pch.h"
#include "Bayes.h"
#include "TrainRateDlg.h"
#include "afxdialogex.h"


// TrainRateDlg 对话框

IMPLEMENT_DYNAMIC(TrainRateDlg, CDialog)

TrainRateDlg::TrainRateDlg(CWnd* pParent /*=nullptr*/)
	: CDialog(IDD_DIALOG_RATE, pParent)
{

}

TrainRateDlg::~TrainRateDlg()
{
}

void TrainRateDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(TrainRateDlg, CDialog)
	ON_BN_CLICKED(IDC_BUTTON_RATE, &TrainRateDlg::OnBnClickedButtonRate)
END_MESSAGE_MAP()


// TrainRateDlg 消息处理程序


void TrainRateDlg::OnBnClickedButtonRate()
{
	GetDlgItemTextA(IDC_EDIT_TEMPRATE, sRate);

	if (sRate == "")
	{
		sRate = "80";
	}

	CDialog::OnOK();
}